package router

import (
	"github.com/gin-gonic/gin"
)

func NewEngine(r IRouter) *gin.Engine {
	e := gin.Default()
	e.Use(gin.Recovery())

	r.Register(e)
	return e
}
